import request from '@/utils/request'

// 查询故障申报信息列表
export function getMalfunctionInfoList(params) {
  return request({
    url: '/admin/MalfunctionManage/getMalfunctionInfoList',
    method: 'get',
    params
  })
}

// 新增/修改故障申报信息
export function changeMalfunctionInfo(params) {
  return request({
    url: '/admin/MalfunctionManage/changeMalfunctionInfo',
    method: 'post',
    params
  })
}

// 批量删除故障申报信息（逻辑删除）
export function deleteMalfunctionInfo(params) {
  return request({
    url: '/admin/MalfunctionManage/deleteMalfunctionInfo',
    method: 'post',
    params
  })
}

// 处理故障申报信息
export function dealMalfunctionInfo(params) {
  return request({
    url: '/admin/MalfunctionManage/dealMalfunctionInfo',
    method: 'post',
    params
  })
}

// 查询错误代码选择框信息
export function getErrorCodeList(params) {
  return request({
    url: '/admin/MalfunctionManage/getErrorCodeList',
    method: 'post',
    params
  })
}
